﻿namespace Vdc.Grid
{
    using System;
    using System.Collections;
    using System.Reflection;

    public class RecordItemsCollection : CollectionBase
    {
        public void Add(RecordItem arr)
        {
            base.List.Add(arr);
        }

        public int GetIndexByColumn(string sColumnName)
        {
            int num = 0;
            foreach (RecordItem item in base.List)
            {
                if (item.Column == sColumnName)
                {
                    return num;
                }
                num++;
            }
            return -1;
        }

        public void Remove(int i)
        {
            base.List.RemoveAt(i);
        }

        public RecordItem this[int index]
        {
            get
            {
                return (RecordItem) base.List[index];
            }
        }
    }
}

